package com.chengcang.api.modules.busi.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chengcang.api.modules.busi.dto.BusiOrderDeliverDTO;
import com.chengcang.api.modules.busi.dto.BusiOrderPageDTO;
import com.chengcang.api.modules.busi.dto.BusiOrderRequestDTO;
import com.chengcang.api.modules.busi.entity.BusiOrderEntity;
import com.chengcang.api.modules.busi.vo.BusiOrderDetailVo;
import com.chengcang.api.modules.busi.vo.BusiOrderVO;
import com.chengcang.common.service.CrudService;

/**
 * 
 *
 * @author zhanli
 * @since 1.0.0 2023-01-10
 */
public interface BusiOrderService extends CrudService<BusiOrderEntity, BusiOrderRequestDTO> {

    Page<BusiOrderVO> getSupplyPage(BusiOrderPageDTO busiOrderPageDto);

    Page<BusiOrderVO> getDemandOrderPage(BusiOrderPageDTO busiOrderPageDto);

    Page<BusiOrderVO> getAllOrderPage(BusiOrderPageDTO busiOrderPageDto);

    public void saveOrder(BusiOrderRequestDTO dto);

    Long getUnsuppliedNum();

    BusiOrderDetailVo detail(Long id);

    void deliver(BusiOrderDeliverDTO dto);


}